package com.fowo.api.model.inventory.list.subtable;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 盘点单子表 导入导出辅助模型 */
@Getter
@Setter
public class InventoryListSubtableExcelPo {

  @ExcelProperty(value = "所属盘点单")
  private Long parentInventoryListWarehouseStock;

  @ExcelIgnore
  @ExcelProperty(value = "所属盘点单")
  private Long parentInventoryList;

  @ExcelProperty(value = "图片", converter = ImageConvert.class)
  private List<SysFile> img;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "品名")
  private String tradeNameName;

  @ExcelIgnore
  @ExcelProperty(value = "品名")
  private Long tradeName;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 50, message = "FNSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "FNSKU")
  private String fnsku;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "店铺")
  private String shopShopName;

  @ExcelIgnore
  @ExcelProperty(value = "店铺")
  private Long shop;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "仓位")
  private String shippingSpaceStorageBin;

  @ExcelIgnore
  @ExcelProperty(value = "仓位")
  private Long shippingSpace;

  @Size(max = 50, message = "仓位类型长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "仓位类型")
  private String shippingSpaceType;

  @ExcelProperty(value = "账面库存")
  private Integer inventory;

  @ExcelProperty(value = "实盘库存")
  private Integer firmInventory;

  @ExcelProperty(value = "盘点差异")
  private Integer intensityDifference;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remark;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "盘点时间")
  private java.util.Date intensityTime;
}
